import request from '@/utils/request'

// 查询用量数据列表
export function getDosageList(query) {
  let baseUrl = '/datastatistics/terminalXbStatisticAnalysis/rangeDosage?areaCode=' + query.areaCode
  if(query.beginTime !=null && query.beginTime !=''){
    baseUrl += '&beginTime=' + query.beginTime
  }
  if(query.endTime !=null && query.endTime !=''){
    baseUrl += '&endTime=' + query.endTime
  }
  return request({
    // url: '/datastatistics/terminalXbStatisticAnalysis/rangeDosage?areaCode=' + query.areaCode + '&beginTime=' + query.beginTime + '&endTime=' + query.endTime,
    url: baseUrl,
    method: 'get',
    // params: query
  })
}